
<div class="row-content am-cf">
    <div class="row">
        <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
            <div class="widget am-cf">
                <div class="widget-head am-cf">
                    <div class="widget-title am-cf">分红记录列表</div>
                </div>
                <div class="widget-body am-fr">
                    <div class="order-list am-scrollable-horizontal am-u-sm-12 am-margin-top-xs">
                        <table width="100%" class="am-table am-table-centered
                        am-text-nowrap am-margin-bottom-xs">
                            <thead>
                            <tr>
                                <th>用户订单号</th>
                                <th>所属小程序</th>
                                <th>用户账户</th>
                                <th>分红期号</th>
                                <th>分红结果</th>
<!--                                <th>退款次数</th>-->
                                <th>支付金額</th>
                                <th>第几次分红</th>
                                <th>分红状态</th>
                                <th>分红订单编号</th>
                                <th>分红订单支付金额</th>
                                <th>分红类型</th>
                                <!--                                <th>退款订单id</th>-->
                                <th>分红金额</th>
                                <th>分红时间</th>
                            </tr>
                            </thead>
                            <tbody>
                            <?php if (count($list)!==0): foreach ($list as $item): ?>
                                <tr>
                                    <td class="am-text-middle"><?= $data['order_no'] ?></td>
                                    <td class="am-text-middle"><?= $data['wxapp']['wxapp_name'] ?></td>
                                    <td class="am-text-middle"><?= $data['user']['nickName'] ?></td>
                                    <td class="am-text-middle"><?= $data['periods_num'] ?></td>
                                    <td class="am-text-middle">
                                        <?php if ($data['type'] ==0) : ?>
                                            <span class="x-color-green">未出局</span>
                                        <?php else: ?>
                                            <span class="x-color-red">已出局</span>
                                        <?php endif; ?>
                                    </td>
<!--                                    <td class="am-text-middle">--><?//= $data['times'] ?><!--</td>-->
                                    <td class="am-text-middle"><?= $data['payment'] ?></td>

                                    <td class="am-text-middle"><?= $item['times'] ? $item['times'] : '' ?></td>

                                    <td class="am-text-middle">
                                        <?php if ($item['status'] ==0) : ?>
                                            <span class="x-color-red">分红中</span>
                                        <?php elseif($item['status']==2): ?>
                                            <span class="x-color-red">分红失败</span>
                                        <?php else: ?>
                                            <span class="x-color-green">分红成功</span>
                                        <?php endif; ?>
                                    </td>
                                    <td class="am-text-middle"><?= isset($item['order_no']) ? $item['order_no'] :0 ?></td>
                                    <td class="am-text-middle"><?= isset($item['money']) ? $item['money'] :0 ?></td>
                                    <td class="am-text-middle">
                                         <?php if ($item['refund_type'] ==1) : ?>
                                            <span class="x-color-red">微信分红</span>
                                        <?php elseif($item['refund_type']==2): ?>
                                            <span class="x-color-green">赏金分红</span>
                                        <?php elseif($item['refund_type']==2): ?>
                                            <span class="x-color-green">零钱分红</span>
                                         <?php else: ?>
                                             <span class="x-color-green"></span>
                                        <?php endif; ?>
                                    </td>

                                    <!--                                    <td class="am-text-middle">--><?//= $item['refund_id']?><!--</td>-->
                                    <td class="am-text-middle"><?= $item['refund_fee']?></td>
                                    <td class="am-text-middle"><?= format_time($item['create_time']) ?></td>

                                </tr>
                            <?php endforeach; else: ?>
                                <tr>
                                    <td colspan="9" class="am-text-center">暂无记录</td>
                                </tr>
                            <?php endif; ?>
                            </tbody>
                        </table>
                    </div>
                    <div class="am-u-lg-12 am-cf">
                        <div class="am-fr"></div>
                        <div class="am-fr pagination-total am-margin-right">
                            <div class="am-vertical-align-middle"></div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>


